package com.lsmw.management.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.lsmw.management.entity.LsRoom;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 二号男嘉宾
 * @since 2020-12-14
 */
public interface LsRoomMapper extends BaseMapper<LsRoom> {
    @Select("select * from ls_hotel_info ${ew.customSqlSegment}")
    LsRoom getHotelById(@Param(Constants.WRAPPER) Wrapper wrapper);

    @Select("select * from ls_hotel_info ${ew.customSqlSegment}")
    LsRoom getHotelByName(@Param(Constants.WRAPPER) Wrapper wrapper);
}
